/* 
 * File:   Scanner.h
 * Author: bryan
 *
 * Created on September 6, 2013, 12:05 AM
 */

#ifndef SCANNER_H
#define	SCANNER_H

#include<string>
#include<vector>
#include"Token.h"
#include<fstream>

using namespace std;

class Scanner {
public:
    Scanner(char*);
	void getNextToken();
	void createToken(int, string, string);
	void checkDash();
	void ignoreComment();
	void createString();
	void checkID();
	void checkKeyword(string);
	string toString();
private:
    Scanner();
	vector<Token> tokenList;
	ifstream input_stream;

	bool error;
	bool end;
	char currentChar;
	int lineCount;
};

#endif	/* SCANNER_H */

